package com.da.auth.security.filter;

import jakarta.servlet.*;
import jakarta.servlet.http.HttpServletRequest;


import java.io.IOException;

/**
 * @Author: hyacinth
 * @CreateTime: 2025-02-13
 * @Version: 1.0
 */

public class RequestLoggingFilter implements Filter {
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        HttpServletRequest httpRequest = (HttpServletRequest) servletRequest;
        String requestPath = httpRequest.getRequestURI();
        System.out.println("Intercepted request path: " + requestPath);
        filterChain.doFilter(servletRequest, servletResponse);
    }
}
